<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>修改密码-{:C('site.sitename')}</title>
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_style.css" />
		<link rel="stylesheet" type="text/css" href="__USERS__/css/user_index.css" />
		<script type="text/javascript" src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
	</head>
	<body>
		<!--顶部-->
		{include file="user/userheader" /}

		<!--User Start-->
		<div class="main">			
			{include file="user/userltnav" /}

			<!--度假线路 Start-->
			<div class="uc-rigbox2">
				<div class="uc-title">
					<h3>修改密码</h3>
				</div>
				<div class="what">
					<div class="dingzhiboxbg" style="background:#FFF; border-bottom:0;">
						<div class="dingzhibox">
							<div class="dingzhi">
								<form action="" method="post" id="password">
									<ul class="dz_top" style="float:left;">

										<li>											
											<em>原密码：</em>
											<input type="password" name="OldPassword" class="dz_input" value=""   />											       <span class="Validform_checktip"></span>
										</li>

										<li>											
											<em>新密码：</em>
											<input type="password" name="userpassword" class="dz_input" plugin="passwordStrength"  value="" />
											<span class="Validform_checktip"></span>
											<div class="passwordStrength"><span>弱</span><span>中</span><span>强</span></div>
										</li>

										<li>											
											<em>重复密码：</em>
											<input type="password" name="retpassword" class="dz_input" value="" />
											<span class="Validform_checktip"></span>
										</li>

										<li>											
											<button class="btn" type="submit">提交修改</button>								
										</li>


									</ul>
								</form>
								<div class="clear"></div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class='clear'></div>
		</div>
		<!--footer-->
		{include file="user/userfooter" /}
		<script type="text/javascript" src="__USERS__/js/Validform_v5.3.2_min.js"></script>
		<script type="text/javascript" src="__USERS__/js/passwordStrength-min.js"></script>
		<script type="text/javascript" src="__USERS__/js/AllScript.js"></script>
		<script type="text/javascript">
			$(function () {

				var pdemo = $("#password").Validform({
					tiptype: 4,
					showAllError: true,
					ajaxPost: true,
					usePlugin: {
						passwordstrength: {
							minLen: 6,
							maxLen: 18
						}
					}
				});
				pdemo.addRule([
					{
						ele: ".dz_input:eq(0)",
						datatype: "*6-18",
						sucmsg: "&nbsp;&nbsp;"
					},
					{
						ele: ".dz_input:eq(1)",
						datatype: "*6-18",
						sucmsg: " "
					},
					{
						ele: ".dz_input:eq(2)",
						datatype: "*6-18",
						recheck: "userpassword",
						sucmsg: "&nbsp;&nbsp;"
					}
				]);
				pdemo.config({
					url: "{:U('/user/password','','',false,true)}",
					ajaxpost: {
						success: function (data) {
							if (data.code > 0) {
								$(".bot_con_bg").removeClass("errors").addClass("succes");
								$(".zhedang").fadeIn(250);
								$(".duifou").fadeIn(300);
								$(".bot_con_txt").html(data.msg);
								setTimeout(function () {
									window.location.href = data.data;
								}, 500);
							}
							if (data.code == 0) {
								$(".bot_con_bg").removeClass("succes").addClass("errors");
								$(".zhedang").fadeIn(350);
								$(".duifou").fadeIn(400);
								$(".bot_con_txt").html("对不起，" + "<em>" + data.info + "</em>" + "请修改后重新提交！");
							}
						}
					}
				});

			});

		</script>


		<div class="duifou">
			<div class="top_tit">
				<h5>提示信息</h5>
				<a id="cls" href="javascript:;">×</a>
			</div>
			<div class="bot_con">
				<div class="bot_con_bg"></div>
				<div class="bot_con_txt"></div>
			</div>
		</div>


		<div class="zhedang"></div>

	</body>
</html>